<?php

/**
 * eventos actions.
 *
 * @package    neoTrainner
 * @subpackage eventos
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class eventosActions extends sfActions {

    /**
     * Executes index action
     *
     * @param sfRequest $request A request object
     */
    public function executeConsultaInscriptos(sfWebRequest $request) {
        $this->evento = NeoEventoPeer::retrieveByPk($request->getParameter('id'));
        $this->forward404Unless($this->evento, sprintf('No existe el evento.'));

        $criteria = new Criteria();
        $criteria->addAscendingOrderByColumn(NeoPersonaPeer::APELLIDO);
        $this->inscriptos = $this->evento->getNeoPersonaEventosJoinNeoPersona($criteria);
    }

}
